package org.example.service;

import org.example.bean.Address;
import org.example.bean.User;

import java.util.List;

public interface UserService{
    //添加用户
    public User register(User user);
    //登录
    public User login(User user);
    //根据用户id修改用户信息
    public User updateUser(Integer user_id,User user);
    //根据用户名查询用户
    public User findByUsername(String username);
    //根据状态查找用户
    public List<User> findByStatus(Integer user_status);
    //根据用户id修改用户状态
    public User updateUserStatus(Integer user_id,Integer user_status);
}
